<div class="bs-example">

<?php echo $this->Form->create('Answer',array('class'=>'form-horizontal'));?>
	<fieldset>
	<legend><?php echo __('Sửa đáp án'); ?></legend>	
	<?php
            echo $this->Form->input('id');
           
	?>
        <div class="form-group">
             <label for="inputEmail3" class="col-sm-2 control-label"> Đáp án</label>
             <div class="col-sm-6">
                 <?php
                        echo $this->Form->input('name', array('div'=>'clearfix',
                            'before'=>'<label>'.__('').'</label><div class="input">',
                            'after'=>$this->Form->error('name', array(), array('wrap' => 'p', 'class' => 'alert alert-danger','style'=>'width:93%')).'</div>',
                            'error' => array('attributes' => array('style' => 'display:none')),
                            'label'=>false, 
                            'class'=>'xlarge',
                            'type' => 'textarea',
                            'cols'=>'100',
                            'rows'=>'3'

                                            ));

                    ?>
                 
             </div>
        </div>
        <div class="form-group">
            <label for="inputEmail3" class="col-sm-2 control-label">Kết quả</label>
            <div class="col-sm-6">
              
                <div class="radio">
                    <label>
                      <input type="radio" name="data[Answer][ruler]" id="optionsRadios1" value="0" checked>
                     Sai
                    </label>
              </div>
                <div class="radio">
                    <label>
                      <input type="radio" name="data[Answer][ruler]" id="optionsRadios2" value="1" >
                      Đúng
                    </label>
              </div>
            </div> 
        </div>
         <div class="form-group">
                <label for="inputEmail3" class="col-sm-2 control-label"> </label>
                <div class="col-sm-4">
                <button type="submit" class="btn btn-primary"> Cập nhật</button>
                <button type="reset" class="btn btn-danger"> Hủy</button>                       

                </div>
	  </div>  
        
        
        
		<input type="hidden" name="data[Answer][url]" value="/answers/add/<?php echo $this->request->data['Answer']['id_quyestion']?>"></input>
		
	</fieldset>
    
    
    
<?php echo $this->Form->end();?>
</div>

